﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NCP.Util.Extend
{
    public static class ObjExtend
    {

        public static string GetVal(this DataRow dr,string dcname)
        {
            if (dr.Table.Columns.Contains(dcname) && dr[dcname] != DBNull.Value)
                return dr[dcname].ToString();
            return string.Empty;
        }
    }
}
